package com.pzh.guli.service.user.controller.admin;


import cn.pzh.guli.service.utils.JwtInfo;
import cn.pzh.guli.service.utils.JwtUtil;
import com.pzh.guli.service.base.dto.MemberDto;
import com.pzh.guli.service.base.handler.HandlerException;
import com.pzh.guli.service.base.result.Result;
import com.pzh.guli.service.user.pojo.Member;
import com.pzh.guli.service.user.pojo.vo.LoginVo;
import com.pzh.guli.service.user.pojo.vo.MemberVo;
import com.pzh.guli.service.user.service.IMemberService;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xzh
 * @since 2022-07-19
 */
@RestController
@RequestMapping("/admin/member")
public class AdminMemberController {
    @Resource
    private IMemberService iMemberService;
    @GetMapping("count/{day}")
    public Result countMemberNumByDay(@PathVariable String day){
       Integer count= iMemberService.countMemberNumByDay(day);
       return Result.ok().data("item",count);
    }
}

